<?php

class CategoryPeer extends BaseCategoryPeer
{
	public static function getTop($limit = 5)
	{
		$c = new Criteria();

		$c->addDescendingOrderByColumn(self::CLICKS);
		$c->setLimit($limit);

		return self::doSelect($c);
	}

	public static function getAll()
	{
		$c = new Criteria();

		$c->addAscendingOrderByColumn(self::NAME);

		return self::doSelect($c);
	}
}
